function y = nondia(x)
%    NONDIA (Shanno-78)  (CUTE)  Function   
%x0= [-1,-1,...,-1]..  
%fmin=n/2,m=20
%Author:shi yangyang
n=length(x);
c=100;
y=ones(1,n);
y(1)=(x(1)-1.0)^2+c*(x(1)-x(1)^2)^2;
for i=2:n
    y(i)=c*(x(1)-x(i)^2)^2;
end
y=sum(y);